<%@ include file="/jsp/common.jsp" %>
<%@ page  language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<head>
<link href="../css/mainbody_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.4.4.js" ></script>
<style type="text/css">
a.titleA_style:hover{ background-color:white;}
.hover{background-color:red;}
</style>
</head>
<body onload="init();">
	<div id="titleId">
		<a id="a01">学校介绍</a><a id="a02">年级信息</a><a id="a03">班级信息</a><a id="a04">增加班级信息</a><a id="a05">添加学生信息</a>
		<form id="formJump">
			<input type="hidden" name="position" value="<c:out value='${position}'/>"/>
		</form>
	</div>
	
	<div>
		<iframe id="showContent" name="showContent" width="100%" height="100%" style="border:none;scrolling:none;" ></iframe>
	</div>
	
	<script>
	function init(){
		$("#titleId").find("a").each(function(ind,obj){
			obj.className = "titleA_style";
			obj.href="javascript:void(0)";
			if(ind == 0){
				var data = 
				obj.setAttribute("onclick","clickButton('introduce.do','"+obj.id+"')");
				obj.click();
			}else if(ind == 1){
				obj.setAttribute("onclick","clickButton('introduce/grade.do','"+obj.id+"')");
			}else if(ind == 2){
				obj.setAttribute("onclick","clickButton('introduce/toQueryStudent.do','"+obj.id+"')");
			}else if(ind == 3){
				obj.setAttribute("onclick","clickButton('introduce/addClass.do','"+obj.id+"')");
			}else if(ind == 4){
				obj.setAttribute("onclick","clickButton('introduce/addStudent.do','"+obj.id+"')");
			}
		});
	}
	
	function clickButton(url,idVal){
		$("#formJump").attr({"action":url,"method":"POST","target":"showContent"});
		$("#"+idVal).addClass("hover");
		$("#"+idVal).siblings().removeClass("hover");
		$("#formJump").submit();
	}
	</script>
</body>